<h1>Listing recipients</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Email</th>
  </tr>

<% for recipient in @recipients %>
  <tr>
    <td><%=h recipient.name %></td>
    <td><%=h recipient.email %></td>
    <td><%= link_to 'Show', recipient %></td>
    <td><%= link_to 'Edit', edit_recipient_path(recipient) %></td>
    <td><%= link_to 'Destroy', recipient, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New recipient', new_recipient_path %>
